//============================================================
// Producnt name:		BoBoARTS.CodeMad
// Version: 			1.0
// Coded by:			Shen Bo (bo.shen@jb-aptech.com.cn)
// Auto generated at: 	2010-6-17 17:40:01
//============================================================

using System;
using System.Collections.Generic;
using System.Text;
using WCSY.DAL;
using WCSY.MODEL;

namespace WCSY.BLL
{

    public static partial class Mg_rightManager
    {
        public static Boolean AddMg_right(Mg_right mg_right)
        {
            return Mg_rightService.AddMg_right(mg_right) > 0;
        }

        public static void DeleteMg_right(Mg_right mg_right)
        {
            Mg_rightService.DeleteMg_right(mg_right);
        }

        public static void DeleteMg_rightByRightsid(int rightsid)
        {
            Mg_rightService.DeleteMg_rightByRightsid(rightsid);
        }

		public static void ModifyMg_right(Mg_right mg_right)
        {
            Mg_rightService.ModifyMg_right(mg_right);
        }
        
        public static IList<Mg_right> GetAllMg_rights()
        {
            return Mg_rightService.GetAllMg_rights();
        }

        public static Mg_right GetMg_rightByRightsid(int rightsid)
        {
            return Mg_rightService.GetMg_rightByRightsid(rightsid);
        }

        //public static IList<Mg_right> GetMg_rightsByParentId(string sql)
        //{
        //    return Mg_rightService.GetMg_rightsBySql(sql);
        //}

        public static IList<Mg_right> GetMg_rightsBySql(string sql) {

            return Mg_rightService.GetMg_rightsBySqlDataset(sql);
        }

    }
}
